package com.ctrip.demo.design.strategy;

/**
 * @author xs.wu
 */
public class TeamGNR {

    private GameStrategy gameStrategy;

    public void setGameStrategy(GameStrategy gameStrategy) {
        this.gameStrategy = gameStrategy;
    }

    public void startTime() {
        System.out.println("游戏开始..");
        // 策略方法
        gameStrategy.warStrategy();
        System.out.println("win....");
    }
}
